package com.itheima.mapper;

import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface MenuMapper {

    List<Menu> findMenuParentList(@Param("id") Integer id);

    List<Menu> findMenuChildrenList(@Param("userId") Integer userId, @Param("id") Integer id);

    List<Menu> findMenuByPage(@Param("queryString")String queryString);

    void updateMenu(Menu menu);

    void addMenu(Menu menu);

    void deleteMenuById(@Param("id")Integer id);

    Integer findCountById(@Param("id") Integer id);

    List<Menu> findAll();
}
